<template>
	<view class="login">
		<view class="mine_l">
			<image src="../../static/img/logo.png" class="mine_logo" mode="widthFix"></image>
		</view>
		<view class="icon_input_sy">
			<view class="iconfont icon19"></view>
			<input class="input" type="text" v-model="phone" placeholder="请输入手机号" />
		</view>
		<view class="icon_input_sy">
			<view class="iconfont iconyanzhengma2"></view>
			<input class="input" type="text" v-model="yzm" placeholder="请输入验证码" />
			<text class="iconfont iconshouye_shugang_shijiantixing"></text>
			<text class="yzm" @click="getYZM" v-if="timeout<0">发送验证码</text>
			<text class="yzm" v-if="timeout>=0">{{timeout}}s 重新获取</text>
		</view>
		<view class="icon_input_sy" v-if="isShow">
			<view class="iconfont iconxinhan"></view>
			<input class="input" type="text" v-model="phone" placeholder="请输入邀请码" />
		</view>
		<view class="s_bz" v-if="isShow">
			请填写邀请人的邀请码,如没有填写则默认推荐人为测试总部
		</view>
		<view class="sub_top">
			<button class="btn blue ms round" @click="loginIn">确定</button>
		</view>
		<view class="s_bz">
			登录即代表同意测试电商平台<text class="blue">《用户协议》</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isShow: false,
				phone: "",
				yzm: "",
				psd: "",
				timeout: -1
			};
		},
		onShow() {

		},
		methods: {
			loginIn() {
				this.isShow = true;
			}

		}
	}
</script>

<style lang="scss" scoped>
	.login {
		padding: 40upx 60rpx 0 60rpx;
		
		.iconshouye_shugang_shijiantixing {
			font-size: 38upx;
			color: #999;
		}
		
		.yzm {
			font-size: 25upx;
			color: $uni-bl;
		}
		.s_bz {
			padding-top: 10upx;
			color: #999;
			transform: scale(.9);
			text-align: center;
		}

		.mine_l_t {
			text-align: center;

			.t {
				padding: 100upx 0 50upx;
			}

			.wx {
				width: 80upx;
			}
		}

		.mine_l {
			text-align: center;
			margin-bottom: 50upx;

			.mine_logo {
				width: 230upx;
			}
		}

		.sub_top {
			margin-top: 160upx;
		}

		.login_wjmm {
			font-size: 20upx;
			color: #999;
			padding: 20upx 0 90upx;

			&.b {
				color: #333;
			}
		}
	}
</style>
